export const tagV = (rule, value, cb) => {
  if (!value.length) {
    return cb(new Error("请选择标签"));
  }
  cb();
};

export const coverV = (rule, value, cb) => {
  if (!value.length) {
    return cb(new Error("请先上传封面"));
  }
  cb();
};

const _new = (constructor, ...args) => {
  const newObject = Object.create(constructor.prototype);
  const res = constructor.apply(newObject, args);
  return typeof res == "object" ? res : newObject;
};
